PATH![]() |
![]() ![]() |
Associates a file with a window.
pascal OSStatus SetWindowProxyFSSpec (
WindowPtr window,
const FSSpec *inFile);
Your application should call the SetWindowProxyFSSpec function to establish a proxy icon for a given window. The creator code and file type of the file associated with a window determine the proxy icon that is displayed for the window.
Because the SetWindowProxyFSSpec function won't work without a saved file, you must establish the initial proxy icon for a new, untitled window with the function SetWindowProxyCreatorAndType , which requires that you know the file type and creator code for the file, but does not require that the file have been saved.
See Supporting Window Proxy Icons for examples of how your application can provide proxy icon support in its document windows.
With Mac OS 8.5, you must save and restore the current graphics port--by calling the QuickDraw functions GetPort and SetPort --around each call to the SetWindowProxyFSSpec function.
The function SetWindowProxyAlias .